clear
clc
close all
% Listing 09.01 Function to compute N factorial
function result = fact(N)
% recursive computation of N!
% fprintf('fact( %d )\n', N); % testing only
if N == 0
result = 1;
else
result = N * fact(N - 1);
end
